package cn.tutu.blockchain.filebak.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import cn.tutu.blockchain.filebak.dao.FilebakDao;
import cn.tutu.blockchain.filebak.entity.Filebak;
import cn.tutu.blockchain.filebak.service.FilebakService;

@Service
@Transactional
public class FilebakServiceImpl implements FilebakService {

	@Autowired
	private FilebakDao filebakDao;

	@Override
	public List<Filebak> findByMacId(String minemachineId) {
		return filebakDao.findByMacId(minemachineId);
	}

	@Override
	public void deleteByMacId(String mineMachineId) {
		filebakDao.deleteByMacId(mineMachineId);
	}

}
